<?php
/*************************************************************************
Constants
----------------------------------------------------------------
PICKCOCMS Project
Company: PICKCO  Co., Ltd  
Email: admin@pick.vn
Last updated: 23/09/2009
Author: Hai Nam
**************************************************************************/
# Please change carefully

#Database settings
define('DB_PREFIX', 'n_');					# Table prefix
define('QUERY_ERROR', '1');					# Show query if failed - Only for debug
define('QUERY_DEBUG', '1');					# Database debug - Show query if failed - Only for debug

# Template settings
define('TEMPLATE_COMPILE', true);			# Force rcompile template files
define('TEMPLATE_DEBUG', false);			# Template debug
define('CACHING', false);					# Caching
define('CACHE_LIFETIME', 120);				# Cache lifetime
define('DEFAULT_TEMPLATE','default');		# Default template

# URL settings
define('TEMPLATE_PATH','/modules/');
define('URL_TYPE', 2);						# URL type: 1- query string, 2- SEO
define('SUB_DOMAIN', 1);					# Support sub domain
define('PROTOCOL', 'http://');				# Protocol 'http://' or 'https://'
define('ECOMMERCE_PROTOCOL', 'http://');	# Order, payment protocol 'http://' or 'https://'
define('DOMAIN', $_SERVER['SERVER_NAME']);	# Main domain name
define('FOLDER', '');						# Folder contain this website source
define('ADMIN_FOLDER', 'admin');			# Admin folder name
define('SCRIPT', 'index.php');				# Script name
define('ADMIN_SCRIPT', 'index.php');		# Admin script name


# Language settings
define('DEFAULT_CHARSET','utf-8');			# Default charset
define('DEFAULT_LANGUAGE','vn');			# Default language
define('DEFAULT_ADMIN_LANGUAGE','en');		# Default language

# Facebook settings
define('FACEBOOK_APPID','358886157456483');	# Default charset
define('FACEBOOK_APP_SECRET','d9553ca4c7b803e7e151b3ca4efd20c8');			# Default language

# Operatiom settings
define('DEFAULT_OP', 'index');				# Default operation if error
define('DEFAULT_ADMIN_OP', 'index');		# Default operation if error
define('DEFAULT_ROWS_PER_PAGE',20);			# Number rows per page in front page
define('DEFAULT_ITEMS_PER_ROW',3);			# Number items per row in front page
define('DEFAULT_ADMIN_ROWS_PER_PAGE', 20);	# Number rows per page in Admin panel

# Photo settings
define('ALLOW_FILE_TYPES','jpg$|bmp$|gif$|png$|wma$|wmv$|mp3$|mpg$|mp4$|mov$|wav$|doc$|xls$|ppt$|txt$|zip$|rar$|pdf$|swf$|flv$|avi$');
define('ALLOW_IMAGE_TYPES','jpg$|bmp$|png$');
define('GALLERY_FOLDER','gallery');			# Gallery root folder
define('IMAGES', ROOT_PATH."upload/images");# Gallery root folder
define('AVATAR', "avatar");					# small images
define('MEDIUM', "medium");					# medium images
define('BIG', "big");						# big images
define('STORAGE', "storage");				# big images

?>
